home *** CD-ROM | disk | FTP | other *** search
- Path: prodigy.com!usenet
- From: vmuslin@prodigy.com (Victor Muslin)
- Newsgroups: comp.lang.c++
- Subject: File I/O Question
- Date: 24 Mar 1996 23:42:08 GMT
- Organization: Prodigy Services Company
- Message-ID: <4j4mkg$94s@stingray.prodigy.net>
- NNTP-Posting-Host: 192.203.241.84
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- Greetings. I am rather new to C++ streams. I read the C++ FAQ book and looked
- in a few other places, but could not find an answer to my question. Any help
- would be appreciated. Please e-mail me at vmuslin@prodigy.com in addition
- to posting the reply.
- Thanks.
-
- I want to lock a file while I am writing to it and then release the lock when
- I am done. In the old days of C I would've used flock(). How can I achieve the
- same functionality with ofstream? And/or how can I get a file descriptor
- corresponding to my file stream?
-
- Thanks again.
-
-